{if $allowedit == 0} {assign var="totalQuantity" value="0"} {assign var="totalCost" value="0"} {foreach $allRawProducts as $pro} {$pro->productName} {$pro->unitName} {$pro->quantity} {if $showPriceCol == 1} {$pro->productBuyPrice} {else} {$pro->productBuyPrice} {/if} {($pro->productBuyPrice*$pro->quantity)|round:3} {if $allowAddDel == 1} {/if} {assign var="totalQuantity" value=$totalQuantity+$pro->quantity} {assign var="totalCost" value=$totalCost+($pro->productBuyPrice * $pro->quantity)} {/foreach} {else} {assign var="totalQuantity" value="0"} {assign var="totalCost" value="0"} {foreach $allRawProducts as $pro}
{if $showPriceCol == 1} {$pro->productBuyPrice} {else} {$pro->productBuyPrice} {/if} {if $allowAddDel == 1} {/if} {assign var="totalQuantity" value=$totalQuantity+$pro->quantity} {assign var="totalCost" value=$totalCost+($pro->productBuyPrice * $pro->quantity)} {/foreach} {/if} الإجمالي {$totalQuantity|round:3} {$totalQuantity|round:3} {if $showPriceCol == 1}{/if} {$totalCost|round:3} {$totalCost|round:3} {if $allowAddDel == 1}{/if} {literal} {/literal}